<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/include/page.jsp"%>
<form id="pagerForm" method="post" action="demo_page1.html">
	<input type="hidden" name="status" value="${param.status}"> <input
		type="hidden" name="keywords" value="${param.keywords}" /> <input
		type="hidden" name="pageNum" value="1" /> <input type="hidden"
		name="numPerPage" value="${model.numPerPage}" /> <input type="hidden"
		name="orderField" value="${param.orderField}" />
</form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="${rootpath}/back/investor/investorList.htm"
		method="post">
		<div class="searchBar">

			<table class="searchContent">
				<tr>
					<td>关键字：<input type="text" name="keyword" value="${requestScope.keyword}" />
						状态：
						<select name="status">
							<option value="">请选择</option>
							<option value="1" ${requestScope.status=='1'?'selected':''}>启用</option>
							<option value="0" ${requestScope.status=='0'?'selected':''}>禁用</option>
						</select>
						类型：
						<select name="coopType">
							<option value="">请选择</option>
							<option value="1" ${requestScope.coopType=='1'?'selected':''}>非直通</option>
							<option value="0" ${requestScope.coopType=='0'?'selected':''}>直通</option>
						</select>
						发布开始日期：<input type="text" value="${requestScope.st}" name="st" datefmt="yyyy-MM-dd HH:mm:ss" class="date" readonly="true" />
						-->截止日期：<input type="text" value="${requestScope.ed}" name="ed" datefmt="yyyy-MM-dd HH:mm:ss" class="date" readonly="true" />
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div></li>
					<li><a class="button" href="demo_page6.html" target="dialog"
						mask="true" title="查询框"><span>高级检索</span></a></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li>
				<a class="add" rel="adminInsert" href="${rootpath}/back/admin/adminInsert.htm" target="navTab">
					<span>添加</span>
				</a>
			</li>
			<li>
				<a class="delete" href="demo/common/ajaxDone.html?uid={sid_user}" target="ajaxTodo" title="确定要删除吗?">
					<span>删除</span>
				</a>
			</li>
			<li><a class="edit" href="${rootpath}/back/investor/investorUpdate.htm?id={sid_user}" target="navTab">
					<span>修改</span>
				</a>
			</li>
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls"
				target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="80">序号</th>
				<th width="120">代码</th>
				<th width="80">名称</th>
				<th width="100">网址</th>
				<th width="150">联系人</th>
				<th width="80">联系电话</th>
				<th width="80">总量</th>
				<th width="80">成交量</th>
				<th width="80">类型</th>
				<th width="80">状态</th>
				<th width="80">创建时间</th>
				<th width="80">更新时间</th>
				<th width="80">发布时间</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${investorList}" var="investor" varStatus="vs">
				<tr target="sid_user" rel="${investor.id}">
					<td widtd="80">${vs.count}</td>
					<td widtd="120">${investor.code}</td>
					<td widtd="80">${investor.name}</td>
					<td widtd="100">${investor.url}</td>
					<td widtd="150">${investor.contactName}</td>
					<td widtd="80">${investor.contactPhone}</td>
					<td widtd="80">${investor.totalNum}</td>
					<td widtd="80">${investor.succedNum}</td>
					<td widtd="80">${investor.coopTypeStr}</td>
					<td widtd="80">${investor.statusStr}</td>
					<td widtd="100">
						<fmt:formatDate value="${investor.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
					</td>
					<td widtd="100">
						<fmt:formatDate value="${investor.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
					</td>
					<td widtd="100">
						<fmt:formatDate value="${investor.pubTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<form id="investorListForm"  onsubmit="return navTabSearch(this);" action="${rootpath}/back/investor/investorList.htm" method="post">
		
			<input type="hidden" name="keyword" value="${requestScope.keyword}"/>
			<input type="hidden" name="status" value="${requestScope.status}"/>
			<input type="hidden" name="st" value="${requestScope.st}"/>
			<input type="hidden" name="ed" value="${requestScope.ed}"/>
			<input type="hidden" name="coopType" value="${requestScope.coopType}"/>
		
			<div class="pages">
				<a onclick="return altPage('investorListForm','investorListCurrentPage',1)"><button>首页</button></a>
				<a  onclick="return altPage('investorListForm','investorListCurrentPage','${requestScope.pageInfo.prePage}')"><button>上一页</button></a>
				<a onclick="return altPage('investorListForm','investorListCurrentPage','${requestScope.pageInfo.nextPage}')"><button>下一页</button></a>
				<a onclick="return altPage('investorListForm','investorListCurrentPage','${requestScope.pageInfo.totalPage}')"><button>尾页</button></a>
				${requestScope.pageInfo.currentPage}/${requestScope.pageInfo.totalPage}页
				共${requestScope.pageInfo.totalRecord}条
				<input type="text" id="investorListCurrentPage" name="currentPage" value="${requestScope.pageInfo.currentPage}" />
				<input type="text" id="investorListPageSize" 	name="pageSize" value="${requestScope.pageInfo.pageSize}"/>
				<input type="submit" value="GO"/>
			</div>
		</form>
	</div>
</div>
